package backup

import "C"
import (
	"satellite/pkg/util"
)

type ShowOption struct {
}

type Show struct {
	*ShowOption
	*Base
}

func NewShow(option *ShowOption) *Show {
	return &Show{
		ShowOption: option,
	}
}

func (c *Show) WithBase(base *Base) *Show {
	c.Base = base
	return c
}

func (c *Show) Run() error {
	backupCr, err := c.getBackupCr()
	if err != nil {
		return err
	}
	util.Println(backupCr.Status)
	return nil
}
